package com.sdy.hospitalguard.biz.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.sdy.common.model.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * web用户管理
 * </p>
 *
 * @author cgj
 * @since 2020-06-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class ManagerDto extends BaseModel {

    /**
     * 主键
     */
    @TableId
    @ApiModelProperty(value = "主键")
    private Integer id;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    private String name;

    /**
     * 账号/手机号
     */
    @ApiModelProperty(value = "账号/手机号")
    private String phone;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    private String password;

    /**
     * 状态  0:有效 1:无效
     */
    @ApiModelProperty(value = "状态  0:有效 1:无效(禁用)")
    private Integer state;

    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id")
    private Integer roleId;

    /**
     * 角色名
     */
    @ApiModelProperty(value = "角色名")
    private String roleName;

    /**
     * 病区id
     */
    @ApiModelProperty(value = "病区id")
    private Integer inpatientAreaId;

    /**
     * 病区名
     */
    @ApiModelProperty(value = "病区名")
    private String inpatientAreaName;

}
